//入口文件
import Vue from "vue"

//导入路由
import VueRouter from "vue-router"
//安装路由
Vue.use(VueRouter)
//导入自己的路由模块
import router from "./router.js"
//导入mui样式
import "./lib/mui/css/mui.css"
import "./lib/mui/css/icons-extra.css"
//导入app组件
import app from "./App.vue"

import jsonp from 'jsonp'
//导入mint-ui中的组件
import { Header,Swipe, SwipeItem,Button } from 'mint-ui';
Vue.component(Header.name, Header);
Vue.component(Swipe.name, Swipe);
Vue.component(SwipeItem.name, SwipeItem);
Vue.component(Button.name, Button);
// // 导入vue-resource
// import VueResource from "vue-resource"
// //安装vue-resource
// Vue.use(VueResource)
import axios from 'axios'
Vue.prototype.$http = axios

var vm=new Vue({
    el:"#app",
    render: c=> c(app),
    router//挂载路由对象到vm实例上
    
})